
/* .cart_list_default .cart_product_list {
    margin: 3rem 0 0;
} */


/*购物车列表*/
.cart_list_default {
    .cart_form-header {
        padding: 10px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .cart_list_title {
        display: grid;
        grid-template-columns: 100px 1fr 1fr 1fr 50px;
        height: 50px;
        line-height: 50px;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
    }
    .cart_list_content {
        display: grid;
        grid-template-columns: 100px 1fr 1fr 1fr 50px;
        padding: 30px 0;
        border-bottom: 1px dashed #ddd;
    }
    .product_info {
        display: flex;
        width: 100%;
    }
    .product_info_pic {
        a {
            width: 100px;
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
        }
        img {
            max-width: 100%;
            max-height: 100%;
        }
    }
    .product_info_info {
        padding-left: 1.5rem;
        box-sizing: border-box;
        overflow: hidden;
    }
    .product_info_name {
        color: #333;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .product_info_sku {
        color: #888;
        line-height: 24px;
        font-size: 14px;
        overflow: hidden;
    }
    .product_custom_option {
        line-height: 24px;
        color: #888;
        font-size: 14px;
    }
    .cart_list_delete {
        fill: #888;
    }
    .cart_qty {
        width: 10rem;
        height: 3rem;
        border: 1px solid #ddd;
        box-sizing: border-box;
        display: flex;
        margin: 0 auto;
        a {
            height: 100%;
            width: 3rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        input[name="cart_qty"] {
            width: calc(100% - 6rem);
            height: 100%;
            border: 0;
            text-align: center;
            background: none;
        }
    }
    .cart_qty_content {
        .stock_quantity {
            text-align: center;
            color: #ff526c;
        }
        .wap_stock_quantity {
            display: none;
        }
        .tip {
            text-align: center;
            color: #ff526c;
            margin-top: 10px;
        }
    }
    .product_total {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start !important;
        flex-wrap: wrap;
    }
    .cart_order_summary {
        display: flex;
        justify-content: space-between;
    }
    .order_discount {
        padding: 20px 0;
        .order_discount_form {
            display: flex;
        }
        .order_discount_coupon_code {
            display: inline-flex;
            align-items: center;
            height: 38px;
            background: rgba(113, 113, 113, 0.11);
            margin-top: 15px;
            border-radius: 5px;
            padding: 0 10px;
            font-weight: bold;
            & > svg {
                margin-right: 5px;
                fill: #717171;
            }
            .close_coupon_code {
                display: block;
                width: 16px;
                height: 16px;
                margin-left: 10px;
                cursor: pointer;
            }
        }
        .order_discount_code_btn {
            margin-left: 10px;
            width: 90px;
            height: 46px;
            line-height: 46px;
            text-align: center;
            background: #c8c8c8;
            color: #fff;
            border: 0;
            border-radius: 5px;
        }
        .order_discount_code_btn_on {
            background: #333;
            cursor: pointer;
        }
        .order_text_box {
            width: calc(100% - 100px);
        }
    }
    .order_text_box {
        position: relative;
    }
    .text_label {
        position: absolute;
        left: 0;
        top: 0;
        line-height: 44px;
        padding-left: 10px;
        color: #737373;
        font-size: 12px;
        cursor: pointer;
        -webkit-transition: all 0.2s ease-out;
        transition: all 0.2s ease-out;
    }
    .top-border {
        border-color: #e32c2b;
        -webkit-box-shadow: 0 0 0 1px #e32c2b;
        box-shadow: 0 0 0 1px #e32c2b;
    }
    .tip {
        color: #e32c2b;
        margin-top: 5px;
    }
    .order_discount_form {
        .order_text_box {
            .text_label {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                width: 100%;
                box-sizing: border-box;
                padding: 0 10px;
            }
        }
    }
    .order_text {
        height: 46px;
        box-sizing: border-box;
        width: 100%;
        background: #fff;
        border: 1px solid #d9d9d9;
        text-indent: 10px;
        border-radius: 5px;
        -webkit-transition: all 0.2s ease-out;
        transition: all 0.2s ease-out;
        &:focus {
            outline: none;
            border-color: #767676;
            -webkit-box-shadow: 0 0 0 1px #767676;
            box-shadow: 0 0 0 1px #767676;
        }
    }
    .order_text_on {
        .text_label {
            line-height: 28px;
        }
        .order_text {
            padding-top: 18px;
            line-height: 20px;
        }
    }
    .cart_order_summary_wrapper {
        max-width: 37%;
        width: 100%;
    }
    .cart_list_coupon {
        display: flex;
        align-items: center;
        input[name="coupon_code"] {
            width: calc(100% - 130px);
            height: 3.5rem;
            border: 0;
            background: #f6f6f6;
            text-indent: 10px;
            box-sizing: border-box;
        }
        input[name="coupon_btn"] {
            height: 3.5rem;
            line-height: 3.5rem;
            border: 0;
            background: #333;
            color: #fff;
            width: 120px;
            margin-left: 10px;
            font-size: 1.2rem;
        }
    }
    .cart_order_price {
        margin: 3rem 0 0;
        li {
            display: flex;
            justify-content: space-between;
            line-height: 3rem;
        }
    }
    .cart_order_btn {
        margin: 3rem 0 0;
        .checkout {
            display: block;
            border: 0;
            width: 100%;
            text-align: center;
            text-transform: uppercase;
            box-sizing: border-box;
        }
        .checkout_out_of_stock {
            background: #888;
            cursor: not-allowed;
            pointer-events: none;
        }
    }
    .shopcart-or {
        padding: 20px 0;
        line-height: 1;
        position: relative;
        text-align: center;
        &:before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background: #888;
        }
        span {
            position: relative;
            background-color: var(--page_background_color);
            padding: 0 15px;
            z-index: 9;
        }
    }
    .cart_order_link {
        text-align: center;
        margin: 2rem 0 0;
    }
}

.cart_list_default .cart_list_title_items,
.cart_list_default .cart_list_content_items {
    display: flex;
    justify-content: center;
}
.cart_list_default .cart_list_content_items:nth-child(2),
.cart_list_default .cart_list_title_items:first-child,
.cart_list_default .cart_list_content_items:first-child {
    justify-content: flex-start;
}
.cart_list_default .cart_list_content_items:nth-child(2),
.cart_list_default .cart_list_content_items:nth-child(3),
.cart_list_default .cart_list_content_items:nth-child(4) {
    margin-left: 15px;
}
.cart_empty_default {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 100px 0;
    .cart_empty_content {
        h3 {
            font-size: 28px;
            font-weight: normal;
            margin-bottom: 60px;
        }
        p {
            font-size: 16px;
            color: #888;
        }
    }
    .cart_empty_svg {
        margin-bottom: 20px;
    }
    .continue_shopping_btn {
        display: inline-block;
        padding: 0 20px;
        height: 44px;
        line-height: 44px;
        background: #333;
        color: #fff;
        margin-top: 60px;
    }
}

@media (max-width: 767px) {
    .cart_list_default {
        .cart_order_summary {
            flex-direction: column-reverse;
        }
        .cart_order_summary_wrapper {
            max-width: 100% !important;
        }
        .product_info_sku {
            line-height: 28px;
            font-size: 14px;
        }
        .product_custom_option {
            line-height: 28px;
        }
        .product_total {
            flex-direction: row;
            .final_line_price {
                margin-right: 5px;
            }
        }
        .cart_qty_content {
            .tip {
                text-align: left;
                padding: 0 0 0 5px;
            }
        }

        .cart_list_title {
            display: none;
        }
        .cart_list_content {
            display: grid;
            grid-template-columns: 100px auto;
            position: relative;
        }
        .cart_list_content_items {
            justify-content: flex-start;
            margin-top: 10px;
            position: relative;
            &:first-child {
                grid-row-start: 1;
                grid-row-end: 4;
            }
            &:last-child {
                position: absolute;
                right: 0;
                bottom: 30px;
            }
        }
        .product_info_info {
            width: 100%;
            padding-left: 5px;
        }
        .cart_qty_content {
            .stock_quantity {
                display: none;
            }
            .wap_stock_quantity {
                display: block;
                color: #ff526c;
                padding: 0 0 0 5px;
            }
        }
        .product_info_name {
            -webkit-line-clamp: 1;
        }
        .product_total {
            padding: 0 0 0 5px;
            grid-row-start: 2;
            grid-row-end: 2;
        }
        .cart_list_coupon {
            flex-wrap: wrap;
            input[name="coupon_code"] {
                width: 100%;
            }
            input[name="coupon_btn"] {
                width: 100%;
                margin: 1rem 0 0;
            }
        }

        .cart_qty {
            margin: 0 !important;
        }
    }
}

@media (max-width: 320px) {
    .cart_list_default .cart_qty,
    .cart_list_default .product_total {
        left: 9rem;
    }

    .cart_list_default .cart_qty {
        width: 9rem;
    }

    .cart_list_default .product_info_sku {
        margin-top: 0;
    }

    .cart_list_default .product_total {
        bottom: 5.5rem;
    }

    .cart_list_default .product_info_info {
        padding: 0 0 5rem 1rem;
    }
}